
#pragma once

class CRegisterDlg : public CDialogImpl<CRegisterDlg>, public CWinDataExchange<CRegisterDlg>
{
public:
	enum { IDD = IDD_DIALOG_REGISTER };

	CString mAuthCode;

	BEGIN_MSG_MAP(CRegisterDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		COMMAND_ID_HANDLER(IDOK, OnOK)
		COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
	END_MSG_MAP()

	BEGIN_DDX_MAP(CRegisterDlg)
		DDX_TEXT(IDC_EDIT_AUTHCODE, mAuthCode)
	END_DDX_MAP()

	LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
	LRESULT OnOK(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
	LRESULT OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
};